import request from '@/util/request'
import globalConfig from '@/config'

// 列表
export function getNewsList(query) {
	return request({
	    url: '/commodity/v1/article/',
	    method: 'GET',
      params: query
	})
}

// 详情
export function getNewsDetail(query) {
	return request({
	    url: '/commodity/v1/article/',
	    method: 'GET',
      params: query
	})
}

// 增加文章资讯阅读量、点赞量、转发量
export function getNewsAdd(query) {
	return request({
	    url: '/commodity/v1/article/',
	    method: 'POST',
      data: query
	})
}

// 文章资讯评论、增加评论阅读量、点赞量
export function getNewsComment(query) {
	return request({
	    url: '/commodity/v1/articlecomment/',
	    method: 'POST',
      data: query
	})
}
